package com.woniuxy.carrental.mapper;

import com.woniuxy.carrental.entity.Details;
import com.woniuxy.carrental.entity.RentCarInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author author
 * @create 2021-09-28 10:56
 */
public interface RentCarInfoMapper {

    public void addRentCarInfo(RentCarInfo rentCarInfo);

//    public List<RentCarInfo> selectAllRentCarInfo(@Param("rentCarInfo") RentCarInfo rentCarInfo,
//                                                  @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    public void updateRentCarInfo(@Param("rentCarInfo") RentCarInfo rentCarInfo);

    public List<RentCarInfo> selectAllRentCarInfo(
            @Param("rentCarInfo") RentCarInfo rentCarInfo,
    @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    public int selectRentCarInfoCountBylimit(@Param("rentCarInfo") RentCarInfo rentCarInfo);

    public void delectRentCarInfoCountByid(int rentcarid);


    public List<RentCarInfo> getallRentCarInfo();

    public void updateStareByrentcarid(int rentcarid);

    public RentCarInfo getRentCarInfoByrentcarid(int rentcarid);

    public void updatedetailsnumBydeid(@Param("deid")int deid,@Param("decount")int decount);

    public Details getdetailBydeid(int deid);

    //根据车牌号查找车辆信息
    RentCarInfo selectRentCarInfoByCarNumber(String car_number);




}
